<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全新无线降噪耳机 - 供给详情 - SupplyHub</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #eef0ff;
            --secondary: #3f37c9;
            --accent: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --danger: #f72585;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            max-width: 600px;
            width: 100%;
        }
        
        /* 主内容区样式 */
        .main-container {
            padding: 2rem 0;
        }
        
        .supply-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        
        /* 图片预览区 */
        .image-preview {
            padding: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .main-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 1rem;
            cursor: zoom-in;
        }
        
        .thumbnail-container {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .thumbnail {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.8;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .thumbnail.active {
            opacity: 1;
            border: 2px solid var(--primary);
        }
        
        .thumbnail:hover {
            opacity: 1;
        }
        
        /* 供给信息区 */
        .supply-info {
            padding: 1.5rem;
        }
        
        .supply-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        
        .supply-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--danger);
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .meta-info {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .supply-description {
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }
        
        .description-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            font-size: 1.25rem;
        }
        
        .detail-list {
            list-style: none;
            padding: 0;
            margin-bottom: 1.5rem;
        }
        
        .detail-list li {
            margin-bottom: 0.75rem;
            display: flex;
        }
        
        .detail-list li:before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }
        
        /* 作者信息 */
        .author-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            text-decoration: none;
            color: var(--dark);
        }
        
        .author-name:hover {
            color: var(--primary);
        }
        
        .author-rating {
            color: #ffc107;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }
        
        .author-meta {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        /* 操作按钮区 */
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .btn-primary:hover {
            background-color: var(--secondary);
            border-color: var(--secondary);
        }
        
        .btn-outline {
            background-color: white;
            border: 1px solid var(--light-gray);
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .btn-outline:hover {
            background-color: var(--light);
            border-color: var(--gray);
        }
        
        /* 互动按钮 */
        .interaction-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .interact-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: 1px solid var(--light-gray);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .interact-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .interact-btn.active {
            background-color: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        /* 标签 */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 2rem;
        }
        
        .tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
        }
        
        .tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 留言区 */
        .comments-section {
            margin-top: 2rem;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .comments-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        /* 留言输入框 */
        .comment-input-container {
            background-color: white;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
        }
        
        .comment-form {
            display: flex;
            gap: 1rem;
        }
        
        .comment-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-input {
            flex: 1;
        }
        
        .comment-input textarea {
            width: 100%;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            resize: none;
            min-height: 100px;
            font-family: inherit;
        }
        
        .comment-input textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
        }
        
        .btn-post {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-post:hover {
            background-color: var(--secondary);
        }
        
        /* 留言列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            background-color: white;
            border-radius: 12px;
            padding: 1.25rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .comment-avatar-sm {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name-sm {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
            line-height: 1.7;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--primary);
        }
        
        /* 回复 */
        .replies-container {
            margin-top: 1rem;
            margin-left: 2.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-content {
            flex: 1;
            background-color: var(--light);
            padding: 0.75rem;
            border-radius: 8px;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 0.9rem;
            margin-right: 0.5rem;
        }
        
        .reply-text {
            font-size: 0.9rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1rem;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .reply-action {
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .reply-action:hover {
            color: var(--primary);
        }
        
        /* 回复输入框 */
        .reply-input-container {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .reply-input {
            flex: 1;
        }
        
        .reply-input textarea {
            width: 100%;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            resize: none;
            min-height: 70px;
            font-family: inherit;
            font-size: 0.9rem;
        }
        
        .reply-input textarea:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .reply-input-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.5rem;
            gap: 0.75rem;
        }
        
        .btn-cancel {
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            padding: 0.35rem 0.75rem;
        }
        
        .btn-reply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.35rem 0.75rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reply:hover {
            background-color: var(--secondary);
        }
        
        /* 相关推荐 */
        .related-supplies {
            margin-top: 3rem;
        }
        
        .related-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
        }
        
        .related-item {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.2s;
            text-decoration: none;
            color: var(--dark);
        }
        
        .related-item:hover {
            transform: translateY(-5px);
            color: var(--dark);
        }
        
        .related-image {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .related-info {
            padding: 0.75rem;
        }
        
        .related-title {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-price {
            font-weight: 600;
            color: var(--danger);
            font-size: 0.9rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .main-image {
                height: 300px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .btn-primary, .btn-outline {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .supply-title {
                font-size: 1.5rem;
            }
            
            .supply-price {
                font-size: 1.25rem;
            }
            
            .main-image {
                height: 250px;
            }
            
            .interaction-buttons {
                flex-wrap: wrap;
            }
            
            .replies-container {
                margin-left: 1.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                order: 3;
                margin-top: 1rem;
                width: 100%;
                max-width: none;
            }
            
            .main-image {
                height: 200px;
            }
            
            .thumbnail {
                width: 60px;
                height: 60px;
            }
            
            .section-title {
                font-size: 1.25rem;
            }
            
            .comment-form {
                flex-direction: column;
            }
            
            .related-items {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3 px-4">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-store"></i>
                SupplyHub
            </a>
            
            <div class="search-container mx-3">
                <div class="input-group">
                    <span class="input-group-text bg-transparent border-right-0">
                        <i class="fas fa-search text-gray-400"></i>
                    </span>
                    <input type="text" class="form-control border-left-0" placeholder="搜索供给、商品或服务...">
                </div>
            </div>
            
            <div class="d-flex align-items-center gap-3">
                <button class="btn btn-outline-primary">
                    <i class="fas fa-plus me-1"></i> 发布供给
                </button>
                <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 38px; height: 38px; object-fit: cover;">
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container main-container">
        <div class="row">
            <!-- 左侧供给详情 -->
            <div class="col-lg-8">
                <div class="supply-card mb-4">
                    <!-- 图片预览区 -->
                    <div class="image-preview">
                        <img src="https://picsum.photos/800/600?random=20" alt="无线耳机主图" class="main-image" id="mainImage">
                        
                        <div class="thumbnail-container">
                            <img src="https://picsum.photos/800/600?random=20" alt="无线耳机缩略图1" class="thumbnail active" data-img="https://picsum.photos/800/600?random=20">
                            <img src="https://picsum.photos/800/600?random=21" alt="无线耳机缩略图2" class="thumbnail" data-img="https://picsum.photos/800/600?random=21">
                            <img src="https://picsum.photos/800/600?random=22" alt="无线耳机缩略图3" class="thumbnail" data-img="https://picsum.photos/800/600?random=22">
                            <img src="https://picsum.photos/800/600?random=23" alt="无线耳机缩略图4" class="thumbnail" data-img="https://picsum.photos/800/600?random=23">
                            <img src="https://picsum.photos/800/600?random=24" alt="无线耳机缩略图5" class="thumbnail" data-img="https://picsum.photos/800/600?random=24">
                        </div>
                    </div>
                    
                    <!-- 供给信息区 -->
                    <div class="supply-info">
                        <h1 class="supply-title">全新无线降噪耳机，未拆封低价转让</h1>
                        
                        <div class="supply-price">¥899</div>
                        
                        <div class="meta-info">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>328 次浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-clock"></i>
                                <span>发布于 2小时前</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>北京市朝阳区</span>
                            </div>
                        </div>
                        
                        <div class="tags-container">
                            <a href="#" class="tag">数码产品</a>
                            <a href="#" class="tag">耳机</a>
                            <a href="#" class="tag">无线</a>
                            <a href="#" class="tag">降噪</a>
                            <a href="#" class="tag">全新</a>
                        </div>
                        
                        <h2 class="description-title">详细描述</h2>
                        <div class="supply-description">
                            <p>最新款无线降噪耳机，朋友送的礼物，自己已经有一个了，全新未拆封，低价转让给需要的朋友。</p>
                            <p>这款耳机具有以下特点：</p>
                            <ul class="detail-list">
                                <li>主动降噪技术，有效隔绝环境噪音</li>
                                <li>长达30小时续航，充电10分钟使用5小时</li>
                                <li>高清通话麦克风，支持语音助手</li>
                                <li>IPX4防水等级，运动健身也能使用</li>
                                <li>快速配对，支持双设备连接</li>
                            </ul>
                            <p>包装内含：耳机本体、充电盒、Type-C充电线、3对不同尺寸耳塞、用户手册。</p>
                            <p>可以同城见面交易，也可以快递（不包邮），有意者请私信联系。</p>
                        </div>
                    </div>
                    
                    <!-- 作者信息 -->
                    <div class="author-section">
                        <img src="https://picsum.photos/100/100?random=10" alt="用户头像" class="author-avatar">
                        <div class="author-info">
                            <a href="#" class="author-name">数码爱好者</a>
                            <div class="author-rating">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <span class="ms-1">(4.5)</span>
                            </div>
                            <div class="author-meta">
                                <span>发布了 28 个供给</span> · 
                                <span>加入 2 年</span> · 
                                <span>326 位粉丝</span>
                            </div>
                        </div>
                        <button class="btn btn-outline">
                            <i class="fas fa-user-plus me-1"></i> 关注
                        </button>
                    </div>
                </div>
                
                <!-- 留言区 -->
                <div class="comments-section">
                    <div class="section-header">
                        <h2 class="section-title">留言讨论</h2>
                        <span class="comments-count">24 条留言</span>
                    </div>
                    
                    <!-- 留言输入框 -->
                    <div class="comment-input-container">
                        <form class="comment-form">
                            <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar">
                            <div class="comment-input">
                                <textarea placeholder="分享你的想法..."></textarea>
                                <div class="comment-actions">
                                    <button type="button" class="btn-post">发布留言</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    
                    <!-- 留言列表 -->
                    <div class="comments-list">
                        <!-- 留言1 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=30" alt="评论者头像" class="comment-avatar-sm">
                                    <div>
                                        <div class="author-name-sm">音乐发烧友</div>
                                        <div class="comment-time">1小时前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                这款耳机音质怎么样？降噪效果好吗？我一直在找一款适合通勤用的降噪耳机。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-btn">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>5</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复输入框 -->
                            <div class="reply-input-container d-none">
                                <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar-sm">
                                <div class="reply-input">
                                    <textarea placeholder="回复 @音乐发烧友..."></textarea>
                                    <div class="reply-input-actions">
                                        <button type="button" class="btn-cancel">取消</button>
                                        <button type="button" class="btn-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies-container">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=10" alt="回复者头像" class="comment-avatar-sm">
                                    <div class="reply-content">
                                        <span class="reply-author">数码爱好者</span>
                                        <span class="reply-text">音质很不错，低音浑厚，高音清晰。降噪效果也很好，在地铁里使用基本能隔绝大部分噪音。</span>
                                        <div class="reply-actions">
                                            <div class="reply-action reply-like">
                                                <i class="far fa-thumbs-up"></i> 2
                                            </div>
                                            <div class="reply-action reply-reply">回复</div>
                                            <div class="reply-time">45分钟前</div>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复2 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=31" alt="回复者头像" class="comment-avatar-sm">
                                    <div class="reply-content">
                                        <span class="reply-author">耳机达人</span>
                                        <span class="reply-text">这款我也有，确实不错，这个价格很划算啊！</span>
                                        <div class="reply-actions">
                                            <div class="reply-action reply-like">
                                                <i class="far fa-thumbs-up"></i> 1
                                            </div>
                                            <div class="reply-action reply-reply">回复</div>
                                            <div class="reply-time">30分钟前</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言2 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=32" alt="评论者头像" class="comment-avatar-sm">
                                    <div>
                                        <div class="author-name-sm"> bargain hunter</div>
                                        <div class="comment-time">2小时前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                最低多少钱能出？诚心想要，可以自提。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-btn">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>2</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复输入框 -->
                            <div class="reply-input-container d-none">
                                <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar-sm">
                                <div class="reply-input">
                                    <textarea placeholder="回复 @bargain hunter..."></textarea>
                                    <div class="reply-input-actions">
                                        <button type="button" class="btn-cancel">取消</button>
                                        <button type="button" class="btn-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies-container">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=10" alt="回复者头像" class="comment-avatar-sm">
                                    <div class="reply-content">
                                        <span class="reply-author">数码爱好者</span>
                                        <span class="reply-text">已经是最低价了，全新未拆封的，官网现在还要1299呢。诚心要的话可以送一个耳机收纳袋。</span>
                                        <div class="reply-actions">
                                            <div class="reply-action reply-like">
                                                <i class="far fa-thumbs-up"></i> 0
                                            </div>
                                            <div class="reply-action reply-reply">回复</div>
                                            <div class="reply-time">1小时前</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言3 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=33" alt="评论者头像" class="comment-avatar-sm">
                                    <div>
                                        <div class="author-name-sm">科技达人</div>
                                        <div class="comment-time">昨天 23:45</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                请问是国行吗？有保修吗？
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-btn">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>3</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-comment"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复输入框 -->
                            <div class="reply-input-container d-none">
                                <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar-sm">
                                <div class="reply-input">
                                    <textarea placeholder="回复 @科技达人..."></textarea>
                                    <div class="reply-input-actions">
                                        <button type="button" class="btn-cancel">取消</button>
                                        <button type="button" class="btn-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies-container">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=10" alt="回复者头像" class="comment-avatar-sm">
                                    <div class="reply-content">
                                        <span class="reply-author">数码爱好者</span>
                                        <span class="reply-text">是国行正品，还没激活，保修期从激活开始算，有完整包装和发票。</span>
                                        <div class="reply-actions">
                                            <div class="reply-action reply-like">
                                                <i class="far fa-thumbs-up"></i> 1
                                            </div>
                                            <div class="reply-action reply-reply">回复</div>
                                            <div class="reply-time">昨天 23:50</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 加载更多 -->
                    <div class="text-center mt-4">
                        <button class="btn btn-outline">
                            <i class="fas fa-history me-1"></i> 加载更多留言
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧操作区 -->
            <div class="col-lg-4">
                <div class="supply-card sticky-top" style="top: 20px;">
                    <div class="supply-info">
                        <div class="action-buttons">
                            <button class="btn btn-primary">
                                <i class="fas fa-shopping-cart me-1"></i> 立即购买
                            </button>
                            <button class="btn btn-outline">
                                <i class="fas fa-comment-alt me-1"></i> 私信联系
                            </button>
                        </div>
                        
                        <div class="interaction-buttons">
                            <button class="interact-btn">
                                <i class="far fa-heart"></i>
                                <span>收藏</span>
                            </button>
                            <button class="interact-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>点赞 (56)</span>
                            </button>
                            <button class="interact-btn">
                                <i class="far fa-share-square"></i>
                                <span>分享</span>
                            </button>
                            <button class="interact-btn">
                                <i class="far fa-flag"></i>
                                <span>举报</span>
                            </button>
                        </div>
                        
                        <div class="supply-description" style="margin-top: 1.5rem;">
                            <div class="description-title">交易信息</div>
                            <div class="detail-list">
                                <li><strong>交易方式：</strong>同城自提 / 快递</li>
                                <li><strong>快递费用：</strong>买家承担</li>
                                <li><strong>新旧程度：</strong>全新未拆封</li>
                                <li><strong>支持自提地点：</strong>北京市朝阳区建国路附近</li>
                                <li><strong>发布时间：</strong>2023-06-15 14:30</li>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 相关推荐 -->
                <div class="related-supplies">
                    <div class="section-header">
                        <h2 class="section-title">相关推荐</h2>
                    </div>
                    
                    <div class="related-items">
                        <a href="#" class="related-item">
                            <img src="https://picsum.photos/400/300?random=40" alt="蓝牙音箱" class="related-image">
                            <div class="related-info">
                                <div class="related-title">便携蓝牙音箱，重低音效果好</div>
                                <div class="related-price">¥399</div>
                            </div>
                        </a>
                        
                        <a href="#" class="related-item">
                            <img src="https://picsum.photos/400/300?random=41" alt="智能手表" class="related-image">
                            <div class="related-info">
                                <div class="related-title">智能手表，支持心率监测</div>
                                <div class="related-price">¥599</div>
                            </div>
                        </a>
                        
                        <a href="#" class="related-item">
                            <img src="https://picsum.photos/400/300?random=42" alt="移动电源" class="related-image">
                            <div class="related-info">
                                <div class="related-title">20000mAh大容量移动电源</div>
                                <div class="related-price">¥129</div>
                            </div>
                        </a>
                        
                        <a href="#" class="related-item">
                            <img src="https://picsum.photos/400/300?random=43" alt="无线充电器" class="related-image">
                            <div class="related-info">
                                <div class="related-title">15W快速无线充电器</div>
                                <div class="related-price">¥89</div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 图片预览切换
            const thumbnails = document.querySelectorAll('.thumbnail');
            const mainImage = document.getElementById('mainImage');
            
            thumbnails.forEach(thumbnail => {
                thumbnail.addEventListener('click', function() {
                    // 更新主图
                    mainImage.src = this.getAttribute('data-img');
                    
                    // 更新缩略图活跃状态
                    thumbnails.forEach(thumb => thumb.classList.remove('active'));
                    this.classList.add('active');
                });
            });
            
            // 互动按钮功能
            const interactButtons = document.querySelectorAll('.interact-btn');
            
            interactButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 收藏按钮切换
                    if (this.querySelector('.fa-heart')) {
                        this.classList.toggle('active');
                        const icon = this.querySelector('.fa-heart');
                        if (this.classList.contains('active')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            this.querySelector('span').textContent = '已收藏';
                        } else {
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            this.querySelector('span').textContent = '收藏';
                        }
                    }
                    
                    // 点赞按钮切换
                    if (this.querySelector('.fa-thumbs-up')) {
                        this.classList.toggle('active');
                        const icon = this.querySelector('.fa-thumbs-up');
                        const countText = this.querySelector('span');
                        let count = parseInt(countText.textContent.match(/\d+/)[0]);
                        
                        if (this.classList.contains('active')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            countText.textContent = `点赞 (${count + 1})`;
                        } else {
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            countText.textContent = `点赞 (${count - 1})`;
                        }
                    }
                    
                    // 分享功能
                    if (this.querySelector('.fa-share-square')) {
                        alert('分享链接已复制到剪贴板！');
                    }
                    
                    // 举报功能
                    if (this.querySelector('.fa-flag')) {
                        alert('举报功能已触发，管理员将尽快处理。');
                    }
                });
            });
            
            // 留言点赞功能
            const likeButtons = document.querySelectorAll('.comment-action.like-btn');
            
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const count = this.querySelector('span');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        count.textContent = parseInt(count.textContent) + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        count.textContent = parseInt(count.textContent) - 1;
                    }
                });
            });
            
            // 回复按钮功能
            const replyButtons = document.querySelectorAll('.comment-action.reply-btn');
            const cancelButtons = document.querySelectorAll('.btn-cancel');
            
            replyButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 隐藏所有回复框
                    document.querySelectorAll('.reply-input-container').forEach(container => {
                        container.classList.add('d-none');
                    });
                    
                    // 显示当前评论的回复框
                    const commentItem = this.closest('.comment-item');
                    const replyInput = commentItem.querySelector('.reply-input-container');
                    replyInput.classList.remove('d-none');
                });
            });
            
            cancelButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-input-container');
                    replyInput.classList.add('d-none');
                });
            });
            
            // 回复提交功能
            const submitReplyButtons = document.querySelectorAll('.btn-reply');
            
            submitReplyButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-input-container');
                    const textarea = replyInput.querySelector('textarea');
                    const commentText = textarea.value.trim();
                    
                    if (commentText) {
                        // 获取回复容器
                        const commentItem = this.closest('.comment-item');
                        const repliesContainer = commentItem.querySelector('.replies-container');
                        
                        // 创建新回复元素
                        const newReply = document.createElement('div');
                        newReply.className = 'reply-item';
                        newReply.innerHTML = `
                            <img src="https://picsum.photos/100/100?random=1" alt="回复者头像" class="comment-avatar-sm">
                            <div class="reply-content">
                                <span class="reply-author">我</span>
                                <span class="reply-text">${commentText}</span>
                                <div class="reply-actions">
                                    <div class="reply-action reply-like">
                                        <i class="far fa-thumbs-up"></i> 0
                                    </div>
                                    <div class="reply-action reply-reply">回复</div>
                                    <div class="reply-time">刚刚</div>
                                </div>
                            </div>
                        `;
                        
                        // 添加新回复到回复容器
                        repliesContainer.prepend(newReply);
                        
                        // 清空输入框并隐藏
                        textarea.value = '';
                        replyInput.classList.add('d-none');
                        
                        // 为新回复的点赞和回复按钮添加事件
                        setupReplyEvents(newReply);
                    }
                });
            });
            
            // 发布留言功能
            const postCommentButton = document.querySelector('.btn-post');
            
            postCommentButton.addEventListener('click', function() {
                const textarea = document.querySelector('.comment-input textarea');
                const commentText = textarea.value.trim();
                
                if (commentText) {
                    // 获取评论列表
                    const commentsList = document.querySelector('.comments-list');
                    
                    // 创建新评论元素
                    const newComment = document.createElement('div');
                    newComment.className = 'comment-item';
                    newComment.innerHTML = `
                        <div class="comment-header">
                            <div class="comment-author">
                                <img src="https://picsum.photos/100/100?random=1" alt="评论者头像" class="comment-avatar-sm">
                                <div>
                                    <div class="author-name-sm">我</div>
                                    <div class="comment-time">刚刚</div>
                                </div>
                            </div>
                        </div>
                        <div class="comment-content">
                            ${commentText}
                        </div>
                        <div class="comment-actions">
                            <div class="comment-action like-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>0</span>
                            </div>
                            <div class="comment-action reply-btn">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </div>
                        </div>
                        
                        <!-- 回复输入框 -->
                        <div class="reply-input-container d-none">
                            <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar-sm">
                            <div class="reply-input">
                                <textarea placeholder="回复..."></textarea>
                                <div class="reply-input-actions">
                                    <button type="button" class="btn-cancel">取消</button>
                                    <button type="button" class="btn-reply">回复</button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 回复列表 -->
                        <div class="replies-container">
                        </div>
                    `;
                    
                    // 添加新评论到评论列表顶部
                    commentsList.prepend(newComment);
                    
                    // 清空输入框
                    textarea.value = '';
                    
                    // 为新评论的按钮添加事件
                    setupCommentEvents(newComment);
                    
                    // 更新评论计数
                    updateCommentCount(1);
                }
            });
            
            // 回复中的点赞和回复按钮事件
            function setupReplyEvents(replyElement) {
                // 回复点赞
                const likeBtn = replyElement.querySelector('.reply-like');
                likeBtn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    let count = parseInt(this.textContent.match(/\d+/)[0]);
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.innerHTML = `<i class="fas fa-thumbs-up"></i> ${count + 1}`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.innerHTML = `<i class="far fa-thumbs-up"></i> ${count - 1}`;
                    }
                });
                
                // 回复的回复
                const replyBtn = replyElement.querySelector('.reply-reply');
                replyBtn.addEventListener('click', function() {
                    // 隐藏所有回复框
                    document.querySelectorAll('.reply-input-container').forEach(container => {
                        container.classList.add('d-none');
                    });
                    
                    // 显示当前回复的回复框
                    const commentItem = this.closest('.comment-item');
                    const replyInput = commentItem.querySelector('.reply-input-container');
                    replyInput.classList.remove('d-none');
                    
                    // 更新回复框占位符
                    const authorName = this.closest('.reply-content').querySelector('.reply-author').textContent;
                    replyInput.querySelector('textarea').placeholder = `回复 @${authorName}...`;
                });
            }
            
            // 评论中的按钮事件
            function setupCommentEvents(commentElement) {
                // 评论点赞
                const likeBtn = commentElement.querySelector('.like-btn');
                likeBtn.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    const count = this.querySelector('span');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        count.textContent = parseInt(count.textContent) + 1;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        count.textContent = parseInt(count.textContent) - 1;
                    }
                });
                
                // 评论回复
                const replyBtn = commentElement.querySelector('.reply-btn');
                replyBtn.addEventListener('click', function() {
                    // 隐藏所有回复框
                    document.querySelectorAll('.reply-input-container').forEach(container => {
                        container.classList.add('d-none');
                    });
                    
                    // 显示当前评论的回复框
                    const replyInput = this.closest('.comment-item').querySelector('.reply-input-container');
                    replyInput.classList.remove('d-none');
                });
                
                // 取消回复
                const cancelBtn = commentElement.querySelector('.btn-cancel');
                cancelBtn.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-input-container');
                    replyInput.classList.add('d-none');
                });
                
                // 提交回复
                const submitReplyBtn = commentElement.querySelector('.btn-reply');
                submitReplyBtn.addEventListener('click', function() {
                    const replyInput = this.closest('.reply-input-container');
                    const textarea = replyInput.querySelector('textarea');
                    const commentText = textarea.value.trim();
                    
                    if (commentText) {
                        // 获取回复容器
                        const commentItem = this.closest('.comment-item');
                        const repliesContainer = commentItem.querySelector('.replies-container');
                        
                        // 创建新回复元素
                        const newReply = document.createElement('div');
                        newReply.className = 'reply-item';
                        newReply.innerHTML = `
                            <img src="https://picsum.photos/100/100?random=1" alt="回复者头像" class="comment-avatar-sm">
                            <div class="reply-content">
                                <span class="reply-author">我</span>
                                <span class="reply-text">${commentText}</span>
                                <div class="reply-actions">
                                    <div class="reply-action reply-like">
                                        <i class="far fa-thumbs-up"></i> 0
                                    </div>
                                    <div class="reply-action reply-reply">回复</div>
                                    <div class="reply-time">刚刚</div>
                                </div>
                            </div>
                        `;
                        
                        // 添加新回复到回复容器
                        repliesContainer.prepend(newReply);
                        
                        // 清空输入框并隐藏
                        textarea.value = '';
                        replyInput.classList.add('d-none');
                        
                        // 为新回复的点赞和回复按钮添加事件
                        setupReplyEvents(newReply);
                    }
                });
            }
            
            // 更新评论计数
            function updateCommentCount(change) {
                const countElement = document.querySelector('.comments-count');
                let currentCount = parseInt(countElement.textContent.match(/\d+/)[0]);
                countElement.textContent = `${currentCount + change} 条留言`;
            }
            
            // 初始化所有评论和回复的事件
            document.querySelectorAll('.comment-item').forEach(comment => {
                setupCommentEvents(comment);
            });
            
            document.querySelectorAll('.reply-item').forEach(reply => {
                setupReplyEvents(reply);
            });
            
            // 加载更多留言
            const loadMoreBtn = document.querySelector('.btn-outline:has(.fa-history)');
            loadMoreBtn.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin me-1"></i> 加载中...';
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '<i class="fas fa-history me-1"></i> 没有更多留言了';
                    this.disabled = true;
                    this.style.opacity = '0.7';
                }, 1500);
            });
        });
    </script>
</body>
</html>
    
